/*
 * Created on Sep 23, 2003
 * Approver
 * Local Projects Database
 * (c) 2003 eRomania Gateway Association
 *
 */
package ro.gateway.aida.usr.messaging;

/**
 * @author Mihai Postelnicu
 * Approver
 *
 *  *
 */
public class Approver extends Alerter
{
      protected int autoApprove; //0-disabled,1-approve,2-reject
      protected String autoReason; //reason automatically sent to owner
      protected boolean warnOwner; //sends a notification to the owner
      protected boolean warnByEmail; //sends an email to the owner

      public Approver( long id, long userId )
      {
            super( id, userId );
            autoApprove = 1;
            autoReason = "";
            warnOwner = true;
            warnByEmail = true;
      }

      /**
       * @return
       */
      public int getAutoApprove()
      {
            return autoApprove;
      }

      /**
       * @return
       */
      public String getAutoReason()
      {
            return autoReason;
      }

      /**
       * @return
       */
      public boolean isWarnByEmail()
      {
            return warnByEmail;
      }

      /**
       * @return
       */
      public boolean isWarnOwner()
      {
            return warnOwner;
      }

      /**
       * @param i
       */
      public void setAutoApprove( int i )
      {
            autoApprove = i;
      }

      /**
       * @param string
       */
      public void setAutoReason( String string )
      {
            autoReason = string;
      }

      /**
       * @param b
       */
      public void setWarnByEmail( boolean b )
      {
            warnByEmail = b;
      }

      /**
       * @param b
       */
      public void setWarnOwner( boolean b )
      {
            warnOwner = b;
      }

}
